package 网络编程项目.util;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class PathUtils {

    public static String imgDir;

    static {
        String url = PathUtils.class.getClassLoader().getResource("网络编程项目/img").toString();
        try {
            imgDir = URLDecoder.decode(url,"utf-8").substring(6);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
    }

}
